//
//  Extensions.swift
//  todoApp
//
//  Created by Sayaka on 16/3/5.
//  Copyright © 2016年 ll studio. All rights reserved.
//

import Foundation
import UIKit

extension UIImage {
    func resizeImage(newSize: CGSize) -> UIImage {

        UIGraphicsBeginImageContext(newSize)
        let imageRect = CGRectMake(0, 0, newSize.width, newSize.height)
        self.drawInRect(imageRect)
        let newImage = UIGraphicsGetImageFromCurrentImageContext()
        UIGraphicsEndImageContext()
        return newImage
    }
}

class SSTextview: UITextView {

}